using System;
using System.ComponentModel;
using System.Runtime.Remoting;
using System.Runtime.CompilerServices;
using mshtml;
using Dimok;
using Dimok.Data;
using Dimok.Exceptions;
using Dimok.IE;

namespace Accurint {

	#region Session class
	public class Session {
		public static MainForm form;
	}
	#endregion

	#region Server class
	public class Server : MarshalByRefObject,IAccurint{
	

		public void Login() {}
		public void Login( string gifID ){
			Session.form.ie.SetElementValue("_T",gifID);
			Session.form.ie.GetElementByName("LOGIN").click();
		}

		public PersonDS GoPeopleSearch(string SSN) {
			return Session.form.GoPeopleSearch(SSN);
		}
		public string GoDriverLicense(string driverLicense) {
			return Session.form.GoDriverLicense(driverLicense);
		}
		public PersonDS GoInstantID(string firstName,string lastName,string SSN,string street,string city,string state,string zip,string DOB,string homePhone,string driverLicense) {
			return Session.form.GoInstantID(firstName,lastName,SSN,street,city,state,zip,DOB,homePhone,driverLicense);
		}

		public PersonDS GoPeopleAtWork(string SSN) {
			return Session.form.GoPeopleAtWork(SSN);
		}
	}
	#endregion
}
namespace Dimok{
	public class Config:Dimok.Data.RegistryBase{
		public static string LogIn{[MethodImplAttribute(MethodImplOptions.NoInlining)]get{return GetConfigValue().ToLower();}}
		/// <summary>
		/// In minutes
		/// </summary>
		public static int JerkTimeOut{[MethodImplAttribute(MethodImplOptions.NoInlining)]get{return int.Parse(GetConfigValue())*60*1000;}}
	}
}
